export function rotateXZ90(...mesh) {
	if (mesh) {
		for (let i = 0; i < mesh.length; i++) {
			let m = mesh[i]
			m.rotateX(Math.PI / 2)
			m.rotateZ(Math.PI / 2)
		}
	}
}

// 计算最大值的类型 type 1 length 2 width 3 hight
export function getMaxSize(tpList, type) {
	let max = 0
	if (tpList && tpList.length > 0) {
		tpList.map((item, index) => {
			if (type == 1) {
				if (item['length'] > max) {
					max = item['length']
				}
			} else if (type == 2) {
				if (item['width'] > max) {
					max = item['width']
				}
			} else {
				if (item['hight'] > max) {
					max = item['hight']
				}
			}
		})
	}
	return max
}

export function getDataModel() {
	return [0, 0, 0]
}